import request from "@/utils/request";

export function listSysRole(data) {
    return request({
        url: '/system/role/list',
        method: 'get',
        params: data
    })
}

export function addSysRole(data) {
    return request({
        url: '/system/role/insert',
        method: 'post',
        data: data
    })
}

export function deleteSysRole(id) {
    return request({
        url: '/system/role/delete/' + id,
        method: 'delete'
    })
}

export function getSysRole(id) {
    return request({
        url: '/system/role/' + id,
        method: 'get'
    })
}

export function updateSysRole(data) {
    return request({
        url: '/system/role/update',
        method: 'put',
        data: data
    })
}
